#ifndef _WIDGET_H_
#define _WIDGET_H_

#include "core.h"
#include "render.h"

class widget
{
public:
	widget()
	{
		m_render = core::get_inst().get_render();
		m_game = core::get_inst().get_game();
	}
	virtual ~widget(){}

	virtual void draw(){}
	virtual void update(u32 _dt){}
	virtual void show(){}
	virtual void hide(){}
	virtual void create(){}
	virtual void destroy(){}

	virtual void event_keyboard(u32 _type,u32 _key){}
	virtual void event_mouse(u32 _type,u32 _x,u32 _y,u32 _keys){}

protected:
	game* m_game;
	render* m_render;
};

#endif